<!-- page heading start-->
<div class="page-heading">
	<ul class="breadcrumb">
		<li><a href="#"> 首页 </a></li>
		<li><a href="javascript:void(0);"> 广告管理 </a></li>
		<li class="active"> 广告列表</li>
	</ul>
</div>
<!-- page heading end-->
<div class="row">
	<div class="col-lg-12">
		<section class="panel">
			<header class="panel-heading">广告列表
				<span class="tools pull-right">
				</span>
			</header>
			<form id="myForm" name="myForm">
			<div class="panel-body">
				<div class="row m-bot15">
					<div class="col-sm-2">
						<select ng-model="adver.adver_category_id" class="form-control"
								ng-options="category.id as category.ac_name for category in categoryList"
								placeholder="分类名称" title="分类名称">
								<option value="">请选择</option>
						</select>
						<input type="hidden" name="adver_category_id" id="adver_category_id">
					</div>
					
					<div class="col-lg-2">
						<div class="btn-group">
							<button ng-click="search()" class="btn btn-primary"> 搜索 </button>
						</div>
						<div class="btn-group">
							<button id="editable-sample_new" class="btn btn-primary" ng-click="reset()">重置</button>
						</div>
					</div>
				</div>
				
				<div class="m-bot15">
					<div class="from-group">
						<button class="btn btn-primary" ng-click="add()"> 添加 </button>
					</div>
				</div>
				
				<section id="no-more-tables">
					<table class="table table-hover" style="margin-bottom: 6px;">
						<thead class="cf">
							<tr>
							<th><input type="checkbox" ng-click="toggleCheckBox()"></th>
							<th class="">名称</th>
							<th class="">链接</th>
							<th class="">是否上架</th>
							<th class="">操作</th>
							</tr>
						</thead>
						<tbody>
						<tr ng-repeat="list in pageList.list" >
							<td data-title="选择">
								<input type="checkbox" ng-click="toggleCheckBox(list.id)" value="{{list.id}}">
							</td>
							<td data-title="广告名称" ng-bind="list.ad_name"></td>
							<td data-title="广告链接" ng-bind="list.ad_path"></td>
							<td data-title="是否上架" ng-bind="list.ad_status | boolFilter"></td>
		                    <td data-title="操作">
		                    	<button class="btn btn-primary btn-xs" ng-click="edit(list.id)" title="编辑"><i class="icon-pencil"></i></button>
		                    	<button class="btn btn-primary btn-xs" ng-click="del(list.id)" title="删除"><i class="icon-remove"></i></button>
							</td>
						</tr>
						</tbody>
					</table>
					<div paging-com></div>
				</section>
			</div>
			</form>
		</section>
	</div>
</div>
<!--body wrapper end-->